package acn.spring.domain;

import javax.persistence.Entity;

import org.hibernate.validator.constraints.NotBlank;
import org.springframework.data.jpa.domain.AbstractPersistable;

@Entity
public class Category extends AbstractPersistable<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2846876304476286233L;

	@NotBlank
	private String name;

	public Category() {
	}

	public Category(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
